﻿package cz.dadul.adventure.controller
{
	/**
	 * ...
	 * @author Dadul
	 */
	import flash.display.*;
	import flash.events.*;
	import cz.dadul.adventure.model.*;
	import cz.dadul.adventure.view.*;
	import cz.dadul.adventure.model.events.*;
	 
	 public class SoundController extends EventDispatcher
	{
		// Constants
		// Singleton instance
		private static var instance:SoundController;


		public function SoundController(p_key:SingletonBlocker):void{
			// this shouldn't be necessary unless they fake out the compiler:
			 if (p_key == null) {
				throw new Error("Error: Instantiation failed: Use SoundController.getInstance() instead of new.");
			  }
			  init();
		}

			
		/**
		 * PRIVATE
		 */
		private function init():void { }

		
		
		/**
		 * STATIC
		 */
		public static function getInstance():SoundController {
         if (instance == null) {
            instance = new SoundController(new SingletonBlocker());
          }
         return instance;
		}

	}
	
}

internal class SingletonBlocker {}